import 'package:fun4live/core/liveSite.dart';
import '../core/BiliBiliSite.dart';
import 'constant.dart';
class Sites{
  static final Map<String,Site> allSites = {
    Constant.kBiliBili:Site(
      id:Constant.kBiliBili,
      logo: "assets/images/bilibili_2.png",
      name:"哔哩哔哩",
      liveSite_: BiliBiliSite(),
    ),
     Constant.kDouyu: Site(
      id: Constant.kDouyu,
      logo: "assets/images/douyu.png",
      name: "斗鱼直播",
      //liveSite: DouyuSite(),
      liveSite_: BiliBiliSite(),
    ),
    Constant.kHuya: Site(
      id: Constant.kHuya,
      logo: "assets/images/huya.png",
      name: "虎牙直播",
      //liveSite: HuyaSite(),
      liveSite_: BiliBiliSite(),
    ),
    Constant.kDouyin: Site(
      id: Constant.kDouyin,
      logo: "assets/images/douyin.png",
      name: "抖音直播",
      //liveSite: DouyinSite(),
      liveSite_: BiliBiliSite(),
    ),
  };
  static List<Site> get supportSites{
    return allSites.values.toList();
  }
}

class Site{
  final String id;
  final String name;
  final String logo;
  final liveSite liveSite_;
  Site({
    required this.id,
    required this.liveSite_,
    required this.logo,
    required this.name,
  });

}